#ifndef ADMININFO_H
#define ADMININFO_H

#include <QString>
#include <QList>

class AdminInfo
{
public:
    AdminInfo();
    AdminInfo(const QString &id,
                         const QString &name ,const QString &sex,
                                    const QString &birth, const QString &pswd);
    ~AdminInfo();

    void display() const;
    void updateAdminInfo(const AdminInfo &info);
    void updateAdminInfo(const QString &id,
              const QString &name ,const QString &sex,
                         const QString &birth, const QString &pswd);

    void setID(const QString &id);
    const QString &getID() const;
    void setname(const QString &name);
    const QString &getname() const;
    void setsex(const QString &sex);
    const QString &getsex() const;
    void setbirth(const QString &birth);
    const QString &getbirth() const;
    void setPswd(const QString &pswd);
    const QString &getPswd() const;

private:
    QString m_id;
    QString m_name;
    QString m_sex;
    QString m_birth;
    QString m_pswd;
};

typedef QList<AdminInfo> ListAdminInfo;

#endif // ADMININFO_H
